package com.coincalf.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @Description: 代理人注册
 * @Author: Chen haigen
 * @Date: Created in 2018/4/16 下午11:11
 * @Modified by: Chen Long
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class AgentRegisterDTO {

    /**
     * 国际电话区号
     */
    @NotEmpty(message="国际电话区号不能为空")
    @ApiModelProperty(name="countryCode", value = "国际电话区号", example = "+86")
    private String countryCode;

    /**
     * 手机号
     */
    @NotEmpty(message="手机号码不能为空")
    @Length(min = 11, max = 11, message="手机号码格式不正确")
    @ApiModelProperty(name="mobile", value = "手机号码", example = "18888888888")
    private String mobile;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 密码
     */
    @NotEmpty(message="密码不能为空")
    @ApiModelProperty(name="password", value = "密码", example = "********")
    private String password;

    /**
     * 真实姓名
     */
    @NotEmpty(message="真实姓名不能为空")
    @ApiModelProperty(name="realName", value = "真实姓名", example = "张三")
    private String realName;

    /**
     * 短信验证码
     */
    @NotEmpty(message="短信验证码不能为空")
    @ApiModelProperty(name="validateCode", value = "短信验证码", example = "000000")
    private String validateCode;

    /**
     * 邀请码
     */
    @NotEmpty(message="邀请码不能为空")
    @ApiModelProperty(name="invitionCode", value = "邀请码", example = "123456")
    private String invitionCode;

    /**
     * 极验验证二次验证表单数据 chllenge
     */
    @NotEmpty(message="极验验证二次验证表单数据 chllenge")
    private String geetest_challenge;

    /**
     * 极验验证二次验证表单数据 validate
     */
    @NotEmpty(message="极验验证二次验证表单数据 validate")
    private String geetest_validate;

    /**
     * 极验验证二次验证表单数据 seccode
     */
    @NotEmpty(message="极验验证二次验证表单数据 seccode")
    private String geetest_seccode;
}
